/***********************************************************************************
**  
* @copyright (c) 2010-2019, ChengDu Duyer Technology Co., LTD. All Right Reserved.
*
************************************************************************************/
/**
* @file	    mjs_reqer.cpp
* @version     
* @brief      
* @author   duye
* @date	    2016-12-26
* @note 
*
* 1. 2016-12-26 duye Created this file
*/

#include <duye_type.h>
#include <mjs_client_proxy.h>
#include <mjs_reqer.h>

MJSReqer::MJSReqer(MJSClient* client) : m_client(client) {}

bool MJSReqer::notify(const MJSInnerMsgType& msg_type, void* data) {
	return m_client->notify(msg_type, data);
}

bool MJSReqer::sendToClient(const std::string& data) {
	return sendToClient(data.c_str(), data.length());
}

bool MJSReqer::sendToClient(const int8* data, const uint64 len) {
	return m_client->sendToClient(data, len);
}

const std::string& MJSReqer::getIP() const {
	return m_client->getIP();
}

const std::string& MJSReqer::getUser() const {
	return m_client->getUser();
}